#ifndef Skeleton_h__
#define Skeleton_h__

#include "../Forest/TreeNode.h"
class Bone;
class Animation;
#include <map>

class Skeleton: public TreeNode
{
public:
	Skeleton(const tstring& file);
	virtual ~Skeleton();

	void Draw();
	void Init(const MeshDesc& mDesc);
	void Tick(float dTime);
	void PlayAnimation(const Animation* anim);
	void SetSpeed(float speed);
	vector<D3DXMATRIX> GetBoneMatrix() const;

private:
	multimap<int, Bone*> m_Bones;
	float m_Speed;


	Skeleton(const Skeleton &t);
	Skeleton& operator= (const Skeleton &t);
};
#endif // Skeleton_h__